import request from "@/utils/requset";

// 获取记录列表
export const getBorrowList = (data: any): any =>
  request({
    method: "post",
    url: "/borrow/list",
    data,
  });
// 导出记录列表
export const exportBorrowExcel = (data: any): any =>
  request({
    method: "post",
    url: "/borrow/export_excel",
    data,
    responseType: 'blob'
  });

// 获取记录列表
export const delBorrowApi = (id: number): any =>
  request({
    method: "delete",
    url: "/borrow/del/" + id,
  });
